//
//  TTSubOrAddView.h
//  TaoTuo
//
//  Created by admin on 2019/8/26.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^buttonClickBlock)(int currentValue);

NS_ASSUME_NONNULL_BEGIN

@interface TTSubOrAddView : UIView

///当前值
@property (nonatomic, assign) int currentValue;
///最小值
@property (nonatomic, assign) int minValue;
///最大值
@property (nonatomic, assign) int maxValue;

///为了加大按钮点击区域故意这样
@property (nonatomic, strong) UILabel *subLabel;

+ (instancetype)subAddViewWithMin:(int)min max:(int)max clickBtnBlock:(buttonClickBlock)clickBtnBlock;

@end

NS_ASSUME_NONNULL_END
